package com.ruoyi.business.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.*;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 钱包管理对象 e_wallet
 *
 * @author hao
 * @date 2023-02-01
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("e_wallet")
public class EWallet extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField("user_id")
    private Long userId;

    /**
     * 用户
     */
    @TableField(exist = false)
    private SysUser user;

    /**
     * xming
     */
    @TableField(exist = false)
    private String name;

    /**
     * 现金余额
     */
    @Excel(name = "现金余额")
    @TableField("cash")
    private Integer cash = 0;

    /**
     * 总收入
     */
    @Excel(name = "总收入")
    @TableField("income")
    private Integer income= 0;

    /**
     * 总支出
     */
    @Excel(name = "总支出")
    @TableField("expenditure")
    private Integer expenditure= 0;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("state")
    private Long state;
}
